package com.sky.mapper;

import com.sky.annotation.AutoFill;
import com.sky.entity.SetmealDish;
import com.sky.enumeration.OperationType;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface DishSetmealMapper {

    int getDishUnionSetmeal(Long dishId);


    void insert(SetmealDish setmealDish);

    List<SetmealDish> getDish(@Param("setmealId") Long id);

    /**
     * 根据套餐id获取菜品id
     * @param id
     * @return
     */
    List<Long> getDishId(@Param("id") Long id);

    /**
     * 根据菜品id获取套餐id
     * @param id
     * @return
     */
    List<Long> getSetmealId(@Param("id") Long id);

    void delete(Long id);
}
